<template>
    <h1>学生信息</h1>
    <div>
        <p>学号：{{ $route.params.studentNo }}</p>
        <p>q: {{ $route.query.q }}</p>
    </div>
</template>

<script setup>
const props = defineProps({studentNo: String, q: String})

console.log(props.q)
// console.log(route.params.studentNo)
</script>